#include<stdio.h>
int main()
{
	int n,j,k,book[3]={0},i=0,flag=1;
	char b='B',s='S',num[11]={"0123456789"};
	scanf("%d",&n);
	while(n!=0)
	{
		book[i++]=n%10;
		n/=10;
	}
	for(i--;i>=0;i--)
	{
		if(book[i]==0&&flag==1)
		{
			printf("0\n");break;
		}
		flag=0;
		for(j=0;j<book[i]&&i==2;j++)
			printf("%c",b);
		for(j=0;j<book[i]&&i==1;j++)
			printf("%c",s);
		for(j=1;j<=book[i]&&i==0;j++)
			printf("%c",num[j]);
	}
	return 0;
 } 
